<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <title>知乎图片过滤器设置</title>
  <style>
    body {
      width: 300px;
      padding: 15px;
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    }
    .container {
      display: flex;
      flex-direction: column;
      gap: 15px;
    }
    .switch {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .toggle {
      position: relative;
      display: inline-block;
      width: 50px;
      height: 24px;
    }
    .toggle input {
      opacity: 0;
      width: 0;
      height: 0;
    }
    .slider {
      position: absolute;
      cursor: pointer;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background-color: #ccc;
      transition: .4s;
      border-radius: 24px;
    }
    .slider:before {
      position: absolute;
      content: "";
      height: 16px;
      width: 16px;
      left: 4px;
      bottom: 4px;
      background-color: white;
      transition: .4s;
      border-radius: 50%;
    }
    input:checked + .slider {
      background-color: #1890ff;
    }
    input:checked + .slider:before {
      transform: translateX(26px);
    }
    .settings {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .input-group {
      display: flex;
      flex-direction: column;
      gap: 5px;
    }
    input[type="number"] {
      padding: 5px;
      border: 1px solid #d9d9d9;
      border-radius: 4px;
    }
    .status {
      margin-top: 10px;
      padding: 10px;
      border-radius: 4px;
      background-color: #f6f6f6;
      text-align: center;
    }
  </style>
</head>
<body>
  <div class="container">
    <div class="switch">
      <span>启用过滤</span>
      <label class="toggle">
        <input type="checkbox" id="enableFilter">
        <span class="slider"></span>
      </label>
    </div>
    
    <div class="settings">
      <div class="input-group">
        <label for="minImages">最少图片数量</label>
        <input type="number" id="minImages" min="1" value="1">
      </div>
    </div>

    <div class="status" id="status">已过滤 0 条回答</div>
  </div>
  <script src="popup.js"></script>
</body>
</html>